<div class="row">
			<div class="twelve columns header">
		

<?php echo form_open('boodschapschrift/editBoodschapschrift/client_id/'.$this->uri->segment(4).'/boodschapschrift_id/'.$this->uri->segment(6));?>

<?php foreach($boodschapschrift as $row):?>
	<fieldset>
	<legend>Boodschapschrift aanpassen</legend>
   	<?php if(isset($query2)):?>
   	<li id="timeDropdown"><label for="tijd">tijdstip </label>
            <?php
				
            	$uur = substr($row->tijd, 0, 2);
				$options = array();
					for($i=0; $i<24; $i++){
						if($i < 10){
							array_push($options, '0'.(string)$i);
						}
						else {
							array_push($options, (string)$i);	
						}
					}
						
				echo form_dropdown('uur', $options, $uur); 
			?>:<?php 
				$min = substr($row->tijd, 3, 1);
				$options2 = array();
				for($i=0; $i<6; $i++){
					if($i == 0)
					{
						array_push($options2, '0'.(string)$i);
					}
					else {
						array_push($options2, (string)$i.'0');	
					}
				}
						
				echo form_dropdown('minuten', $options2, $min); 
			?>	
            </li>
            <?php if(form_error('uur')):?><small class="form-field error"><?php echo form_error('uur'); ?></small> <?php endif;?>
    
            
            <div>
				<label for="datum">datum</label>
     			<input type="text" name="datum"  id="yadayadadatepicker" value="<?php echo $row->datum; ?>" class="large input-text" />
				<?php if(form_error('datum')):?><small class="form-field error"><?php echo form_error('datum'); ?></small> <?php endif;?>
          	</div> 
		 
   
   <div>
		<label for="onderwerp">Onderwerp</label>
		<input type="text" name="onderwerp" value="<?php echo $row->onderwerp; ?>" class="large input-text" />
		<?php if(form_error('onderwerp')):?><small class="form-field error"><?php echo form_error('onderwerp'); ?></small> <?php endif;?>
	</div>
	
	<div>
		<label for="bericht">Bericht</label>
		<textarea name='bericht'><?php echo $row->bericht; ?></textarea>
		<?php if(form_error('bericht')):?><small class="form-field error"><?php echo form_error('bericht'); ?></small> <?php endif;?>
	</div>
	
	<input type='hidden' name='boodschapschrift_id' value='<?php echo $this->uri->segment(6);?>'/>
<?php endif;?>	
	
<?php endforeach;?>

	<input type='submit' value='submit' class="white radius nice button" />
	<br> <br></fieldset>